#ifndef CONTROL_OF_ELEMENTS_H
#define CONTROL_OF_ELEMENTS_H

#include <QGraphicsItem>
#include <QPixmap>
#include <QPainter>
#include <QTimer>
#include <QGraphicsScene>
#include <QTime>
#include <math.h>



class control_of_elements :public QGraphicsItem,public QObject
{
public:
    control_of_elements();

public:
    //图片：
    QPixmap  pix_1;
    QPixmap  pix_2;

    bool  is_1;



    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    void timerEvent(QTimerEvent *event);
};

#endif // CONTROL_OF_ELEMENTS_H
